import App from './App'
import uView from '@/uni_modules/uview-ui'

// #ifndef VUE3
import Vue from 'vue'

import store from './store'
Vue.prototype.$store = store
import {
	router,
	RouterMount
} from '@/router/index.js';
Vue.use(router)

Vue.config.productionTip = false
Vue.use(uView)

App.mpType = 'app'
const app = new Vue({
	store,
	...App
})

RouterMount(app, router, '#app')

app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif
